package cn.smbms.service;

import cn.smbms.pojo.User;
import cn.smbms.utils.PageSupport;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService{

    User Login(String userCode,String password);

    User getUserByUserCode(String userCode);

    User getUserById(Integer id);

    Integer getUserCount(String userName, Integer userRole);

    List<User> getUserList(String userName, Integer userRole, PageSupport pageSupport);

    Boolean addUser(@Param("user") User user);

    Boolean deleteUser(Integer userid);

    Boolean updateUser(User user);

    Boolean updateUserPassword(Integer id,String userPassword);
}
